package com.kangye.exam.dao;

import com.kangye.exam.bean.Itembank;
import com.kangye.exam.bean.Paper;
import com.kangye.exam.bean.Student;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;



public interface PaperDao {
    List<Itembank> selectbysubject(Map<String,Object>map);//按照学科查找显示全部
    List<Itembank> selectbyId(Map<String,Object>map);//按照id或者提醒查找
    int createpaper(Map<String,Object>map);//将创建好的试卷加入数据库
    List<Paper> paperall(Map<String,Object>map);//通过教师id查找这个教师所出的所有试卷
    Integer delpaper(Map<String,Object> map);//通过试卷id删除试卷
    List<Integer> getPaperIdList(Student student);
    List<Paper> getPapers(List<Integer> paperIdList);
    Paper getPaper(Paper paper);
    Student getStudentName(Student student);
}
